package com.wyy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyy.beans.Resource;
import com.wyy.beans.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ResourceDao extends BaseMapper<Resource> {
    @Select("select * from resource re left join resource_role rr on re.reid = rr.resource_id where rr.role_id = #{roleId}")
    List<Resource> getResourcesByRoleId(long roleId);
}
